package cn.qzuie.smart.module.dorm.controller.admin.buildings.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 栋新增/修改 Request VO")
@Data
public class BuildingsSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9161")
    private Integer id;

    @Schema(description = "楼栋名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "楼栋名不能为空")
    private String buildingName;

    @Schema(description = "昵称", example = "李四")
    private String nickName;

    @Schema(description = "校区名称：校本部1；文创园2；科创园3", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "校区名称：校本部1；文创园2；科创园3不能为空")
    private Integer campus;

    @Schema(description = "总楼层", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "总楼层不能为空")
    private Integer totalFloors;

    @Schema(description = "总房间数")
    private Integer totalRooms;

    @Schema(description = "楼管")
    private Long charger;

    @Schema(description = "建造日期")
    private LocalDate buildDate;

}